package day0717OOP;

import java.util.Random;

public class Test7 {
    public static void main(String[] args) {
        int[]  a={1,2,9};
        System.out.println(a[5]);//数组小标越界
    }
}
//.ArrayIndexOutOfBoundsException: 5



class Animal{}
class Dog extends  Animal{}
class Fish extends  Animal{}